
add_executable(componentA entry.cxx componentA.cxx)
if(ANDROID)
    target_link_libraries(componentA PRIVATE log)
endif()
target_link_libraries(componentA PRIVATE simpCore)
if(HAVE_PTHREAD)
    target_link_libraries(componentA PRIVATE pthread)
endif()
install(TARGETS componentA ARCHIVE DESTINATION bin)

add_executable(componentB entry.cxx componentB.cxx)
if(ANDROID)
    target_link_libraries(componentB PRIVATE log)
endif()
target_link_libraries(componentB PRIVATE simpCore)
if(HAVE_PTHREAD)
    target_link_libraries(componentB PRIVATE pthread)
endif()
install(TARGETS componentB ARCHIVE DESTINATION bin)

add_executable(componentAll entry.cxx componentA.cxx componentB.cxx)
if(ANDROID)
    target_link_libraries(componentAll PRIVATE log)
endif()
target_link_libraries(componentAll PRIVATE simpCore)
if(HAVE_PTHREAD)
    target_link_libraries(componentAll PRIVATE pthread)
endif()
install(TARGETS componentAll ARCHIVE DESTINATION bin)
